package us.codecraft.tinyioc.factory;

import us.codecraft.tinyioc.BeanDefinition;

/**
 * bean的容器
 *
 * @author yihua.huang@dianping.com
 */
public interface BeanFactory {
    /**
     * @param name
     * @return
     */
    Object getBean(String name);

    /**
     * @param name
     * @param beanDefinition
     * @throws Exception
     */
    void registerBeanDefinition(String name, BeanDefinition beanDefinition) throws Exception;
}
